﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/Edit.Master"  AutoEventWireup="true"  CodeBehind="Sys_User_Edit.aspx.cs" Inherits="Honestysoft.Baseframework.WebUI.SystemManage.Permission.Sys_User_Edit"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	
<script language="javascript" type="text/javascript">
        var opts = null;
        function InitRules() {
            opts = {
                 rules:
                 {
					<%= txtLoginID.UniqueID%>:{required: true,maxlength: 36},
					<%= txtUserName.UniqueID%>:{required: true,maxlength: 200},
                    <%= txtPassword.UniqueID%>:{required: true,minlength: 3,maxlength: 20},
                    <%= txtPasswordConfirm.UniqueID%>:{required: true,minlength: 3,maxlength: 20,equalTo: "#<%=txtPassword.ClientID %>"}	
                 },
                 messages:
                 {
					<%= txtLoginID.UniqueID%>:{required: "登录账号 请输入合适的值",maxlength: "登录账号 最多只能输入36个字符"},
					<%= txtUserName.UniqueID%>:{required: "姓名 请输入合适的值",maxlength: "姓名 最多只能输入200个字符"},
                    <%= txtPassword.UniqueID%>:{required: "密码 请输入合适的值",minlength:"密码 至少输入3位密码",maxlength: "密码 最多只能输入20个字符"},
                    <%= txtPasswordConfirm.UniqueID%>:{required: "确认密码 请输入合适的值",minlength:"密码 至少输入3位密码",maxlength: "密码 最多只能输入20个字符",equalTo: "确认密码与密码不相同"}								
                 },
                 onfocusout:false,
                 onclick:false,
                 onkeyup:false,
                 errorPlacement: function(error, element) {
                    $("#errorContainer").show();
                    error.html("<li>* "+error.html()+"</li>");
                    error.appendTo("#errorContainer");
                 },
                 wrapper:"li"
            }
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <table cellpadding="0" width="100%" cellspacing="0" border="1" class="tEdit" style="border-bottom:0px;margin-top:2px;">
            <th style="border-bottom:0px">系统用户维护</th>
        </table>
        <table cellpadding="0" width="100%" cellspacing="0" border="1" class="tEdit">
		<tr>
			<td style="width:80px;" class="title1">登录账号</td>
			<td><asp:TextBox ID="txtLoginID" runat="server"  cssClass="input2" MaxLength="36" Width="96%"></asp:TextBox></td>
            <td  style="width:80px;" class="title1">姓名</td>
			<td><asp:TextBox ID="txtUserName" runat="server"  cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox></td>
		</tr>
        <%if (Request.QueryString["ID"] + "" == "")
          { %>
		<tr>
			<td class="title1">密码</td>
			<td colspan="3"><asp:TextBox ID="txtPassword" TextMode="Password" runat="server"  cssClass="input2" MaxLength="512" Width="96%"></asp:TextBox></td>			
		</tr>
        <tr>
            <td class="title1">确认密码</td>
            <td colspan="3"><asp:TextBox ID="txtPasswordConfirm" TextMode="Password"  runat="server"  cssClass="input2" MaxLength="512" Width="96%"></asp:TextBox></td>
        </tr>
        <%} %>
		<tr>			
			<td class="title1">性别</td>
			<td><asp:DropDownList ID="ddlSex" runat="server" cssClass="input2"  Width="98%"></asp:DropDownList></td>
            <td class="title1">是否有效</td>
			<td><asp:CheckBox ID="chkIsValid" runat="server"></asp:CheckBox></td>
		</tr>
		<tr>
			<td class="title1">手机</td>
			<td colspan="3"><asp:TextBox ID="txtMobile" runat="server"  cssClass="input2" MaxLength="30" Width="96%"></asp:TextBox></td>			
		</tr>
        <tr>
            <td class="title1">电子邮件</td>
			<td colspan="3"><asp:TextBox ID="txtEMail" runat="server"  cssClass="input2" MaxLength="200" Width="96%"></asp:TextBox></td>
        </tr>
		<tr>
			<td class="title1">备注</td>
			<td colspan="3"><asp:TextBox ID="txtRemark" TextMode="MultiLine" Rows="4" runat="server"  cssClass="input2" MaxLength="500" Width="96%"></asp:TextBox></td>			
		</tr>
        <tr>
            <td class="title1">所属角色</td>
            <td colspan="3">
                <asp:CheckBoxList runat="server" ID="chkRole" RepeatLayout="Flow"></asp:CheckBoxList>
            </td>
        </tr>
        </table>
        <div class="save_area">
            <asp:Button runat="server" ID="btnOK" Text="确定" class="btn_normal" 
                onmouseover="this.className='btn_active'" 
                onmouseout="this.className='btn_normal'" onclick="btnOK_Click"/>
            <input type="button" id="btnExit" value="取消" onclick="javascript:window.returnValue=false;window.close();" class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" />
        </div>
</asp:Content>


